<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Hash;
class BaseBanner extends Model
{
    protected $table = 'base_banner';//
    
    protected $appends = ['updown_txt'];
    
     /**
     * @return mixed
     */
    public function getUpdownTxtAttribute(){
        return $this->updown == 1 ? "上架中" : "下架中";
    } 

}
